import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/home/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
  },
  {
    path: '/article',
    name: 'acticle',
    component: () => import('@/views/article/articleView.vue'),
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('@/views/about/aboutView.vue'),
  },
  {
    path: '/project',
    name: 'project',
    component: () => import('@/views/project/projectView.vue'),
  },
  {
    path: '/message',
    name: 'message',
    component: () => import('@/views/message/messageView.vue'),
  },
]

const router = new VueRouter({
  routes,
})

export default router
